<%--
  Created by IntelliJ IDEA.
  User: Liu
  Date: 2023/8/24
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <base href="${ctx}/">
    <title>库存修改</title>
    <script src="assets/lib/jQuery/jquery-3.7.0.min.js"></script>
    <script src="assets/lib/laydate/laydate.js"></script>
    <script src="assets/lib/layer/layer.js"></script>
    <script>
        const ctx = "${ctx}/";
        const error = "${error}"
        const success = "${success}";
    </script>
    <script src="assets/JS/inventory/edit.js"></script>
    <link rel="stylesheet" href="assets/CSS/inventory/edit.css">
</head>
<body>
<h1>修改库存信息</h1>
<div>
    <form id="inventoryForm" action="inventory/edit" method="post">
        <div>
            <label for="warehouseId">仓库编号:</label>
            <input type="text" name="warehouseId" id="warehouseId" placeholder="请输入仓库编号" value="${inventory.warehouseId}">
        </div>
        <div>
            <label for="commodityId">商品编号:</label>
            <input type="text" name="commodityId" id="commodityId" placeholder="请输入商品编号" value="${inventory.commodityId}">
        </div>
        <div>
            <label for="inventory">库存:</label>
            <input type="text" name="inventory" id="inventory" placeholder="请输入库存" value="${inventory.inventory}">
        </div>
        <div>
            <label for="entryTime">入库时间:</label>
            <input type="text" name="entryTime" id="entryTime" placeholder="请选择入库时间" value="${inventory.entryTime}" readonly>
        </div>

        <div>
            <label></label>
            <button type="submit" id="confirm">确认</button>
            <button type="reset" id="reset">重置</button>
            <input type="hidden" name="id" value="${inventory.id}">
        </div>
    </form>
</div>
</body>
</html>
